package com.tangtang.register.client;

public class HttpSender {
    public RegisterResponse register(RegisterRequest request){
        System.out.println("模拟发送服务注册请求");

        RegisterResponse response = new RegisterResponse();
        response.setCode(200);
        response.setStatus(RegisterResponse.SUCCESS);

        return response;
    }


    public HeartbeatRespnce heartBeat(HeartbeatRequest request){
        System.out.println("模拟服务心跳请求");

        HeartbeatRespnce response = new HeartbeatRespnce();
        response.setCode(200);
        response.setStatus(RegisterResponse.SUCCESS);

        return response;
    }

}
